package test2;


interface Swim{
    void swimming();
}

public class Anonymous {
    public static void main(String[] args) {
        Swim swim1 = new Swim() {
            @Override
            public void swimming() {
                System.out.println("游泳ing");
            }
        };
        swim1.swimming();
    }
}
